import { Entity, Property } from "@mikro-orm/core";
import { BaseEntity } from "./Base";

@Entity()
export class Author extends BaseEntity {
    @Property({ type: "string" })
    name!: string;

    @Property({ type: "string" })
    email?: string;

    @Property({ hidden: true, type: "string" })
    pass!: string;

    @Property({ type: "date" })
    birthday?: Date;
}
